<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<List<Core.DAL.tSite_GMapPlace>>" MasterPageFile="~/Views/Shared/Iframe.Master" %>

<asp:Content ID="cHead" ContentPlaceHolderID="cphHead" runat="server">
    <% this.Page.Title = (string)ViewData["PageTitle"]; %>
</asp:Content>

<asp:Content ID="cJScripts" runat="server" ContentPlaceHolderID="cphJScripts">
<script type="text/javascript">
    function ShowOnMap(i) {
        parent.google.maps.event.trigger(parent.gmarkers[i], 'click');
        parent.$.fn.colorbox.close();
    }

    $(document).ready(function () {
        resize();
    });
</script>
</asp:Content>

<asp:Content ID="cMainContent" runat="server" ContentPlaceHolderID="cphMainContent">
    <ul class="listCamp">
        <% for (int i = 0; i < Model.Count(); i++) { %>
        <li>
            <a href="javascript:ShowOnMap(<%= i.ToString() %>);"><%= Html.Encode(Model[i].DateCamp)%> : <%= Html.Encode(Model[i].Label)%> (<%= Html.Encode(Model[i].City)%>)</a>
        </li>
        <% } %>
    </ul>
</asp:Content>


